$(document).ready(function(){
    $("#frm_contact").validate({
        rules: {
            'name': { required: true },
            'email': {
                required: true,
                email: true
            },
            'subject': { required: true },
            'message': { required: true }
        }
    });
});